<?php

session_start();
require_once('include/MySugarApplication.php');

$app->checkSession('library.php', $server_unique_key);

?>
<!DOCTYPE HTML SYSTEM "http://www.bitzermobile.com/bitzer/dtd/HTML401-loose-bitzer.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">        
        <?php
		if (!$isBitzer) {
        	echo '
			<title>Sugar C</title>
			<LINK REL=StyleSheet HREF="',$app->appRoot,'include/style.css" TYPE="text/css" MEDIA=screen>
        <script type="text/javascript" src="',$app->appRoot,'include/niftycube.js"></script>
        <script type="text/javascript">
            window.onload=function(){
				var width = "400px";
				setAppRoot("',$app->appRoot,'");
                Nifty("div#container");
                Nifty("div#content,div#nav","same-height small");
                Nifty("div#header,div#footer","small");
                Nifty("ul.postnav a","transparent");
				setWidth("div#container", width);
				setWidth("div#content", width);
				setWidth("div#footer", width);
            }
        </script>';
        } else {
			echo '<title></title>';
		}
			?>
    </head>
    <body>
<?php
	if (!$isBitzer) {
        echo '<div id="container">
            <div id="header">
				<table width="100%">
					<tr>
						<td width="95%" align="left"><h1>MySugar Bitzer Catalog</h1></td>
						<td align="right" width="5%"><a href="',$app->appRoot,'Logout.php">Logout</a></td>
					</tr>
				</table>
			</div>
            <div id="content">
            <br>';
	}
?>
            <UL data-bitzer-library-name="<?php echo $catalog_name ?>"
    		data-bitzer-library-desc="Sugar CRM iPhone inteface"
		data-bitzer-library-image="http://dev.bitzermobile.com/mysugarcrm/images/ico_sugar_crm.png" 
		data-bitzer-read-only="false"
		data-bitzer-library-timezone-offset="-5"
		data-bitzer-auto-sync="false"
		data-bitzer-library-style="TABLE">
                <LI data-bitzer-components="true">Components
                	<UL>
                    	<LI data-bitzer-form-name="Users"
         					data-bitzer-image-url="photos/001.jpeg"
			 				data-bitzer-last-modified="2010-03-26 00:00:00 EST">
							<A HREF="Users/Form.php">Users</A>
                            <UL>
                            	<LI data-bitzer-table-id="users-default-view"
         							data-bitzer-image-url="http://dev.bitzermobile.com/mysugarcrm/images/users.jpg"
		    						data-bitzer-last-modified="2010-02-09 08:50:00 EST">
									<A HREF="Users/DefaultView.php">Users Default view</A>
								</LI>
                            </UL>
						</LI>
                    	<LI data-bitzer-form-name="Contacts"
         					data-bitzer-image-url="http://dev.bitzermobile.com/mysugarcrm/images/ico-contact.png"
			 				data-bitzer-last-modified="2010-03-26 00:00:00 EST">
							<A HREF="Contacts/Form.php">Contacts</A>
                            <UL>
                            	<LI data-bitzer-table-id="contacts-default-view"
         							data-bitzer-image-url="http://dev.bitzermobile.com/mysugarcrm/images/ico-contact.png"
		    						data-bitzer-last-modified="2010-02-09 08:50:00 EST">
									<A HREF="Contacts/DefaultView.php">Contacts Style view</A>
								</LI>
                            </UL>
						</LI>
                    	<LI data-bitzer-form-name="Accounts"
         					data-bitzer-image-url="http://dev.bitzermobile.com/mysugarcrm/images/ico-accounts.png">
							<A HREF="Accounts/Form.php">Accounts</A>
                            <UL>
                            	<LI data-bitzer-table-id="accounts-default-view"
         							data-bitzer-image-url="http://dev.bitzermobile.com/mysugarcrm/images/four-cell-view.jpg"
		    						data-bitzer-last-modified="2010-02-09 08:50:00 EST">
									<A HREF="Accounts/DefaultView.php">Accounts default view</A>
								</LI>
                            </UL>

						</LI>
                        <LI data-bitzer-form-name="Leads"
         					data-bitzer-image-url="http://dev.bitzermobile.com/mysugarcrm/images/ico-leads.png">
							<A HREF="Leads/Form.php">Leads</A>
                            <UL>
                            	<LI data-bitzer-table-id="leads-default-view"
         							data-bitzer-image-url="http://dev.bitzermobile.com/mysugarcrm/images/leads.jpg"
		    						data-bitzer-last-modified="2010-02-09 08:50:00 EST">
									<A HREF="Leads/DefaultView.php">Leads default view</A>
								</LI>
                            </UL>
						</LI>
                    </UL>
                </LI>
			</UL>
            
<?php
	if (!$isBitzer) {
                echo '<br>
           
            </div>
            <div id="footer"></div>
        </div>';
		}
?>

    </body>
</html>
